package com.jiantong.work.impl.dao;

import com.jiantong.work.model.IssuanceTable;
import io.terminus.common.mysql.dao.MyBatisDao;
import org.springframework.stereotype.Repository;
import com.google.common.collect.Maps;

import java.util.Map;

/**
 * Created by mz03 on 2017/5/9.
 */
@Repository
public class IssuanceTableDao extends MyBatisDao<IssuanceTable>{


    //根据一个map 创建一条打印表
    public Boolean createByMap(Map<String, Object> criteria) {
        if (criteria == null) {
            criteria = Maps.newHashMap();
        }
        return  Boolean.valueOf(this.sqlSession.insert(this.sqlId("createByMap"), criteria) == 1);
    }
}
